import { type VNode, h } from 'vue'
import { type TextComponentProps } from './defaultProps'
export interface PropToForm {
  component: string
  subComponent?: string
  // value?: string
  text?: string
  extraProps?: {
    [key: string]: any
  }
  options?: { text: string | VNode; value: any }[]
  initalTransform?: (v: any) => any
  afterTransform?: (v: any) => any
  valueProp?: string
  eventName?: string
  // events?: {
  //   [key: string]: any
  // }
}

export type PropsToForms = {
  [P in keyof TextComponentProps]?: PropToForm
}
